home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 19 / 9 / DISK1993.ZIP / FILESAFE.EXE / INSTBAT.BAT < prev    next >
DOS Batch File  |  1990-01-22  |  4KB  |  94 lines

  1. Echo off
  2. :This batch file should be located in the installation drive/directory
  3. Cls
  4. echo   
  5. echo    ╔═══════════════════════════════════════════════════════════════════╗
  6. echo    ║                                                                   ║
  7. echo    ║                        F I L E - S A F E                          ║
  8. echo    ║                     Batch File Installation                       ║
  9. echo    ║                                                                   ║
  10. echo    ║  This procedure will install two batch files in the root          ║
  11. echo    ║  directory of your hard disk.  If either of them already exists,  ║
  12. echo    ║  it will terminate and not install any batch files.  The two      ║
  13. echo    ║  files are FIM.BAT and FI.BAT.  If the procedure does terminate,  ║
  14. echo    ║  you may correct the situation and re-run it by entering:         ║
  15. echo    ║                                                                   ║
  16. echo    ║                        INSTBAT x: name                            ║
  17. echo    ║                                                                   ║
  18. echo    ║  where "x" is the drive letter where the files should be          ║
  19. echo    ║  installed and "name" is the name of the directory where File-    ║
  20. echo    ║  Safe was installed.  The current drive/directory should be       ║
  21. echo    ║  the same since that is where INSTBAT.BAT is located - e.g.       ║
  22. echo    ║  C:\FILESAFE                                                      ║
  23. echo    ║                                                                   ║
  24. echo    ╚═══════════════════════════════════════════════════════════════════╝
  25. echo   
  26. Pause
  27. if exist HDINST2.BAT del HDINST2.BAT
  28. if "%1"=="" goto NoParms
  29. if EXIST %1\FIBAT goto Abort
  30. if EXIST %1\FIM.BAT goto Abort
  31. goto Continue
  32. :NoParms
  33. Cls
  34. Echo  
  35. Echo    You must enter the drive and directory
  36. Echo    where File-Safe is installed .....
  37. Echo  
  38. Echo    Use this format: INSTBAT x: Name
  39. Echo  
  40. Echo    Where "x" is the drive and "Name" is the directory
  41. Echo    You don't need a "\" in fromt of "Name"
  42. Echo  
  43. pause
  44. goto Quit
  45. :Abort
  46. Cls
  47. Echo  
  48. Echo          Batch file(s) already exist(s) on %1\
  49. Echo        In order to avoid destroying your file(s)
  50. Echo          this procedure will terminate here
  51. Echo  
  52. Pause
  53. goto Quit
  54. :Continue
  55. Echo Echo off > %1\FI.BAT
  56. Echo Echo off > %1\FIM.BAT
  57. Echo Cls >> %1\FI.BAT
  58. Echo Cls >> %1\FIM.BAT
  59. Echo %1 >> %1\fi.bat
  60. Echo %1 >> %1\fim.bat
  61. Echo CD \%2 >> %1\fi.bat
  62. Echo CD \%2 >> %1\fim.bat
  63. Echo FI  %%1 >>  %1\fi.bat
  64. Echo FIM %%1 >> %1\fim.bat
  65. Echo Cd\  >> %1\fi.bat
  66. Echo Cd\  >> %1\fim.bat
  67. Cls
  68. echo   
  69. echo    ╔═══════════════════════════════════════════════════════════════════╗
  70. echo    ║                       F I L E - S A F E                           ║
  71. echo    ║                    Batch File Installation                        ║
  72. echo    ║                                                                   ║
  73. echo    ║  The batch files FI.BAT and FIM.BAT have now been installed       ║
  74. echo    ║  in your hard disk's root directory.  You can now execute the     ║
  75. echo    ║  File-Safe system simply by entering FIM.  In addition, if you    ║
  76. echo    ║  add FI to your AUTOEXEC.BAT file , File-Safe will run auto-      ║
  77. echo    ║  matically every time you start up your computer.  If any         ║
  78. echo    ║  backups are needed, it will tell you so, and if not, it will     ║
  79. echo    ║  merely return you to DOS.  We also recommend that, if you do     ║
  80. echo    ║  not have any path specifications in your AUTOEXEC file, you      ║
  81. echo    ║  add PATH=C:\ to it.  That way, batch files in your root          ║
  82. echo    ║  directory will always be found.                                  ║
  83. echo    ║                                                                   ║
  84. echo    ║                   . . . . . . . . . . . . .                       ║
  85. echo    ║                                                                   ║
  86. echo    ╚═══════════════════════════════════════════════════════════════════╝
  87. echo  
  88. Echo .. The current directory should be %1\%2, and it is:
  89. CD
  90. Pause
  91. :Quit
  92. Cls
  93.  
  94.